//
//  UIButton+Extension.swift
//  weibo
//
//  Created by 林帆 on 2017/4/7.
//  Copyright © 2017年 林帆. All rights reserved.
//

import UIKit

extension UIButton {
    convenience init(text : String, fontSize : CGFloat = 16,  textColor : UIColor ) {
        self.init()
        self.setTitle(text, for: .normal)
        self.setTitleColor(textColor, for: .normal)
        self.setTitleColor(#colorLiteral(red: 0.3098039329, green: 0.2039215714, blue: 0.03921568766, alpha: 1), for: .highlighted)
        self.titleLabel?.font = UIFont.systemFont(ofSize: fontSize)
    }
}
